package com.cn.ant.modules.score.entity;

import com.cn.ant.common.utils.excel.annotation.ExcelField;
import org.hibernate.validator.constraints.Length;

import com.cn.ant.common.persistence.MyDataEntity;

/**
 * 同位分Entity
 * @author AntDream
 * @version 2015-08-19
 */
public class TwfInfo extends MyDataEntity<TwfInfo> {
	
	private static final long serialVersionUID = 1L;
	private String year;		// 年度
	private String kemuType;		// 科类
	private String df;		// 档案分
	private String ranking;		// 名次
	private String twScore;		// 同位分
	private String province;		// 省份
	private String provinceName;
	
	public TwfInfo() {
		super();
	}

	public TwfInfo(String id){
		super(id);
	}

    @Length(min = 1, max = 5, message = "年度长度必须介于 1 和 5 之间")
    @ExcelField(title = "年度", align = 0, sort = 3, type = 0)
    public String getYear() {
        return year;
    }

	public void setYear(String year) {
		this.year = year;
	}

    @Length(min = 1, max = 10, message = "科类长度必须介于 1 和 10 之间")
    @ExcelField(title = "科目类别", align = 0, sort = 4, type = 0, dictType = "kemu_type")
    public String getKemuType() {
        return kemuType;
    }

	public void setKemuType(String kemuType) {
		this.kemuType = kemuType;
	}
	
	@Length(min=1, max=11, message="档案分长度必须介于 1 和 11 之间")
    @ExcelField(title = "档案分", align = 0, sort = 5, type = 0)
	public String getDf() {
		return df;
	}

	public void setDf(String df) {
		this.df = df;
	}
	
	@Length(min=1, max=11, message="名次长度必须介于 1 和 11 之间")
    @ExcelField(title = "名次", align = 0, sort = 7, type = 0)
	public String getRanking() {
		return ranking;
	}

	public void setRanking(String ranking) {
		this.ranking = ranking;
	}
	
	@Length(min=1, max=11, message="同位分长度必须介于 1 和 11 之间")
    @ExcelField(title = "同位分", align = 0, sort = 6, type = 0)
	public String getTwScore() {
		return twScore;
	}

	public void setTwScore(String twScore) {
		this.twScore = twScore;
	}
	
	@Length(min=1, max=20, message="省份长度必须介于 1 和 20 之间")
    @ExcelField(title = "省份编码", align = 0, sort = 2, type = 0)
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

    @ExcelField(title = "省份名称", align = 0, sort = 1, type = 0)
    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }
}